//
// Created by Castle-Moriarty on 2025/11/2.
//
#include <iostream>
using namespace std;

int sum(int a,int b) {
    int result = a + b;
    cout << "In:&result(int): " << &result << endl;
    return result;
}

string add_strings(string str1,string str2) {
    string result = str1 + str2;
    cout << "In : &result(string) : " << &result  << endl;
    return result;
}

int main() {
    /*
    int a{22};
    int b{33};
    int result = sum(a,b);
    cout << "Out : &result(int): " << &result << endl;
    cout << "Sum: " << result << endl;
    */

    string in_str1{"hello"};
    string in_str2{"world"};
    string result = add_strings(in_str1,in_str2);
    cout << "Out : &result(string) : " << &result  << endl;
    cout << "add_string:" << result << endl;

    return 0;
}